<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Create a transliterator</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="transliterator.construct.html">Transliterator::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="transliterator.createfromrules.html">Transliterator::createFromRules</a></div>
 <div class="up"><a href="class.transliterator.html">Transliterator</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="transliterator.create" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Transliterator::create</h1>
  <h1 class="refname">transliterator_create</h1>
  <p class="verinfo">(PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">Transliterator::create</span> -- <span class="refname">transliterator_create</span> &mdash; <span class="dc-title">Create a transliterator</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-transliterator.create-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type"><a href="class.transliterator.html" class="type Transliterator">Transliterator</a></span> <span class="methodname"><strong>Transliterator::create</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$id</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$direction</code></span>
  ] )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="class.transliterator.html" class="type Transliterator">Transliterator</a></span> <span class="methodname"><strong>transliterator_create</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$id</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$direction</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Opens a Transliterator by id.
  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-transliterator.create-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">id</code></em></dt>

    <dd>

     <p class="para">
      The id.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">direction</code></em></dt>

    <dd>

     <p class="para">
      The direction, defaults to 
      <a href="class.transliterator.html#transliterator.constants.forward" class="link">&gt;Transliterator::FORWARD</a>.
      May also be set to
      <a href="class.transliterator.html#transliterator.constants.reverse" class="link">Transliterator::REVERSE</a>.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-transliterator.create-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a <a href="class.transliterator.html" class="classname">Transliterator</a> object on success,
   or <strong><code>NULL</code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-transliterator.create-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="transliterator.geterrormessage.html" class="methodname" rel="rdfs-seeAlso">Transliterator::getErrorMessage()</a> - Get last error message</span></li>
    <li class="member"><span class="methodname"><a href="transliterator.construct.html" class="methodname" rel="rdfs-seeAlso">Transliterator::__construct()</a> - Private constructor to deny instantiation</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="transliterator.construct.html">Transliterator::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="transliterator.createfromrules.html">Transliterator::createFromRules</a></div>
 <div class="up"><a href="class.transliterator.html">Transliterator</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
